<?php

namespace App\Policies;

use App\Models\User;
use App\Models\Domain;

class DomainPolicy extends Policy
{
    public function update(User $user, Domain $domain)
    {
        // return $domain->user_id == $user->id;
        return true;
    }

    public function destroy(User $user, Domain $domain)
    {
        return $user->hasRole('Founder');
    }
}
